package com.dayu.finecomm.mongo.pojo;

public class Packet extends Basic<Packet> {

	private static final long serialVersionUID = 1L;

	/**
	 * 数据来源(ip和端口)
	 */
	private static final String FIELD_SOURCE = "source";
	/**
	 * 数据正文
	 */
	private static final String FIELD_T = "t";

	/**
	 * 数据正文
	 */
	private static final String FIELD_VALUE = "value";

	/**
	 * 数据正文
	 */
	private static final String FIELD_IN = "in";

	public Object getValue() {
		return get(FIELD_VALUE);
	}

	public void setValue(Object value) {
		put(FIELD_VALUE, value);

	}

	public int getT() {
		return getInt(FIELD_T);
	}

	public void setT(int time) {
		put(FIELD_T, time);
	}

	public String getSource() {
		return getString(FIELD_SOURCE);
	}

	public void setSource(String source) {

		put(FIELD_SOURCE, source);
	}

	public String getIn() {
		return getString(FIELD_IN);
	}

	public void setIn(String in) {

		put(FIELD_IN, in);
	}
}
